home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / wf200_c.arc / WF.006 < prev    next >
Text File  |  1990-08-30  |  15KB  |  388 lines

  1. .f3                              - # -              Chapter 6 - Working With Blocks
  2. .rm70
  3. .mt5
  4. .mb5
  5. .pl66
  6. .tc
  7. .tc 6. WORKING WITH BLOCKS ................................#
  8. 6. WORKING WITH BLOCKS
  9.  
  10. A block of text is an area that starts with a Begin Block marker, and
  11. terminates with an End Block marker. Normally, all text from the
  12. Begining going left to right and down the file is included up to the
  13. end block marker. However, if Column Mode is set, then the block
  14. markers also set column boundaries, and only text within those columns
  15. is included.
  16.  
  17. .tc    Mark a Block of Text ...............................#
  18. Mark a Block of Text
  19.  
  20. 1. Place the cursor at the beginning of the block.
  21. 2. Press the block begin keys: Ctl K B or F7.
  22. 3. Move the cursor to the end of the block. Press the Block end
  23.    sequence: Ctl K K or F8. The block will be highlighted in
  24.    complementary colours.
  25.  
  26. Font Display
  27.  
  28. If Font display is OFF, then the cursor column position is where the
  29. block marker is set. If Font Display is ON, then if the cursor is
  30. positioned just after a font marker, the beginning block will be moved
  31. left until the character prior to the block marker is not a font
  32. character. Conversely, if the End block marker is positioned before a
  33. font display character, the End block marker will be moved right until
  34. it is positioned over a non font character. This is to ensure that
  35. font characters are included in blocks when they are marked if font
  36. display is ON.
  37.  
  38. Columns Included
  39.  
  40. The column the cursor resides in is included in the beginning of
  41. block, but is excluded from the end of block. If column mode is OFF,
  42. then all text between the Beginning and the End markers is included.
  43. When column mode is ON (the status line will show Cols or C Rep) the
  44. text must be within the columns delimited by the beginning and end
  45. markers.
  46.  
  47. .Tc    Hide a Block .......................................#
  48. Hide a Block
  49.  
  50. Once a block is marked, it can be hidden from view. When it is hidden,
  51. it is treated as if it had never been marked, except that if you enter
  52. the Hide block command a second time without changing the block
  53. markers, then the hidden block will be revealed again.
  54.  
  55. To hide a block press Ctl K H
  56.  
  57. .tc    Columns ............................................#
  58. Columns
  59.  
  60. When column mode is active, blocks of text are delineated by columns.
  61. There are 2 types of column mode: Column Mode and Column Replace Mode,
  62. and they affect the way in which blocks of text are moved and copied.
  63.  
  64. Column Mode
  65.  
  66. To toggle column mode, enter Ctrl K N. If column mode is OFF, it will
  67. be turned ON, and vice versa. Column mode determines that blocks mark
  68. columns of text, and with word wrap, that words wrap within columns.
  69. The status line will display either Cols or C Rep, depending upon
  70. whether Column Replace is also on.
  71.  
  72. Column Replace Mode
  73.  
  74. To toggle column replace mode, enter Ctrl K I. If column replace is
  75. OFF, it will be turned ON, and vice versa. However, it will have no
  76. effect unless column mode is also on.
  77.  
  78. When column mode is ON and column replace is OFF, columns of text
  79. displace any text on lines they are moved (or copied) into, and lines
  80. they are moved (or deleted) from have their text moved left to fill in
  81. the gap.
  82.  
  83. When column mode is ON and column replace is ON, columns of text
  84. overwrite text on lines into which they are moved (or copied), and
  85. lines they are moved (or deleted) from have the text replaced by
  86. spaces.
  87.  
  88. This is covered in more detail in Move, Copy and Delete below.
  89.  
  90. .Tc    Moving a Block .....................................#
  91. Moving a Block
  92.  
  93. To move a block of text within a file:
  94. 1. Mark the block of text with Ctl K B and Ctl K K.
  95. 2. Move the cursor to the new location for the block.
  96. 3. Press Ctl K V and the text is moved.
  97. 4. Press Ctl K H to unmark the block.
  98.  
  99. If Column mode is OFF, then the moved text will be inserted where the
  100. cursor is, regardless of the setting of INS. The text to the right of
  101. the cursor will be pushed right, and if the block consists of more
  102. than one line, additional lines will be inserted. To move a complete
  103. line, go to column one and mark the begining, and then go down one
  104. line and mark the end in column one as well. The text is deleted from
  105. its original position in a move. If the moved text is all in one line,
  106. then no gap will remain after the text is moved.
  107.  
  108. In the examples below, the marked text is underlined. The cursor is
  109. shown by a single underline character _
  110.  
  111. No Columns
  112. (i)     Partial line.
  113.  
  114.          Friends, Romans and countrymen, lend me your ears.
  115.          Now is the time
  116.  
  117.         becomes
  118.  
  119.          Friends, Re your ears.
  120.          Now iomans and countrymen, lend ms the time
  121.  
  122. .cp7
  123. (ii)    Multiple lines
  124.  
  125.          'Twas brillig and the slythy toves
  126.          did gyre and gymbol in the gabe.
  127.          All mimsey were the borogoves,
  128. _        and mome raths outgabe.
  129.  
  130.         becomes
  131.  
  132.          All mimsey were the borogoves,
  133.          'Twas brillig and the slythy toves
  134.          did gyre and gymbol in the gabe.
  135. _        and mome raths outgabe.
  136.  
  137. Column Mode
  138.  
  139. If Column Mode is ON, and Column Replace mode is OFF, (the status line
  140. shows Cols) then the moved text pushes text on the line to the right
  141. for each line that has text moved to it. The source text is deleted,
  142. and the text on the line flows left to fill in any gaps:
  143.  
  144. Example
  145.  
  146.           This is the date that the decision was made not to pursue
  147.           the assessment, or the date on which the decision was made
  148.           not to offer a program, or the date on which the Assessment
  149.           deliverables (eg rehabilitation plan or assessment report)
  150.           were produced. If not filled in, when the client proceeds to
  151.           the Program Details screen, it will default to the start
  152.           date from the first current objective.
  153.  
  154.         becomes
  155.  
  156.           Thie that the decision was s is the datmade not to pursue
  157.           the or the date on which th assessment,e decision was made
  158.           notprogram, or the date on  to offer a which the Assessment
  159.           delg rehabilitation plan oriverables (e assessment report)
  160.           werIf not filled in, when te produced. he client proceeds to
  161.           the Program Details screen, it will default to the start
  162.           date from the first current objective.
  163.  
  164. which does not make a lot of sense for text, but serves to illustrate
  165. what happens.
  166.  
  167. .cp15
  168. Column Replace
  169.  
  170. If Column Mode is ON, and Column Replace mode is ON, (the status line
  171. shows C Rep) then the moved text overwrites text on the line to the right
  172. for each line that has text moved to it. The source text is deleted,
  173. and the text on the line replaced by spaces.
  174.  
  175. .cp10
  176. Example
  177.  
  178.           This is the date that the decision was made not to pursue
  179.           the assessment, or the date on which the decision was made
  180.           not to offer a program, or the date on which the Assessment
  181.           deliverables (eg rehabilitation plan or assessment report)
  182.           were produced. If not filled in, when the client proceeds to
  183.           the Program Details screen, it will default to the start
  184.           date from the first current objective.
  185.  
  186.         becomes
  187.  
  188.           Thie that the decision was             made not to pursue
  189.           the or the date on which th            e decision was made
  190.           notprogram, or the date on             which the Assessment
  191.           delg rehabilitation plan or             assessment report)
  192.           werIf not filled in, when t            he client proceeds to
  193.           the Program Details screen, it will default to the start
  194.           date from the first current objective.
  195.  
  196.  
  197. As you can see, column moves will correctly handle overlapping blocks,
  198. provided the cursor is not positioned within the block. If this is the
  199. case, the move rejects. For a column move, the first column of the
  200. block is a valid cursor position, and can be used to move a block up
  201. or down a few lines. Shifting blocks of text left or right in the line
  202. can also be accomplished by the Shift Left and Shift Right commands.
  203. (See below)
  204.  
  205. NOTE  Column mode is checked on the source window, so if you are
  206.       copying or moving from one window to another, the settings on
  207.       the source window will be assumed to hold for the destination.
  208.       If this were not the case, strange things could happen if a
  209.       column of text were moved (or copied) and then treated like a
  210.       series of lines at the destination.
  211.  
  212. TIP   If you need different column mode setting on 2 windows (ie
  213.       column mode on one and column replace on the other) for a move,
  214.       set the appropriate settings for the destination on the source
  215.       window, and Copy the block. The change the settings on the
  216.       source window, Redefine the block, and Delete it.
  217.  
  218. .Tc    Copying a Block ....................................#
  219. Copying a Block
  220.  
  221. To copy a block of text within a file:
  222. 1. Mark the block of text with Ctl K B and Ctl K K.
  223. 2. Move the cursor to the new location for the block.
  224. 3. Press Ctl K C at the location to copy the text.
  225.  
  226. Copying functions almost identically to moving a block, except that
  227. the source text is unchanged.
  228.  
  229. .cp5
  230. .Tc    Deleting a Block ...................................#
  231. Deleting a Block
  232.  
  233. To delete a block of text:
  234. 1. Mark the block of text with Ctl K B and Ctl K K  .
  235. 2. Press Ctl K Y and the text is deleted.
  236.  
  237. Deleting functions in a similar fashion to moving text, where the
  238. source text is deleted. There is naturally no destination. Deleted
  239. blocks are copied to the Undo buffer, but only as many lines as will
  240. fit. The undo buffer acts as a stack, in that the last line pushed
  241. onto it is the first one out, except that if the buffer is full, the
  242. oldest text is dropped off the bottom, and the space returned
  243.  
  244.  
  245. .cp5
  246. .Tc    Undeleting a Block .................................#
  247. Undeleting a Block
  248.  
  249. To undelete the text currently in the Undo Area:
  250. 1. Place the cursor where you want to insert the text from the Undo
  251.    Area.
  252. 2. Press ESC once for each line.
  253. OR
  254. 2. Press Ctrl Q V to insert the entire undo buffer.
  255.  
  256. The amount of text in the undo buffer is limited to the number of
  257. lines you select in the Undo limit menu item on the Load file options
  258. sub menu on the Options menu. It defaults to 20.
  259.  
  260. .tc    Writing to a File ..................................#
  261. Writing to a File
  262.  
  263. To copy a block of text to another file:
  264. 1. Mark the block of text with Ctl K B and Ctl K K.
  265. 2. Press Ctl K W. A window will prompt:
  266.      filename:
  267. 3. Type a file name and press Enter.
  268.  
  269. If the block is defined as a column, only a column will be written.
  270.  
  271. .tc    Inserting a File ...................................#
  272. Inserting a File
  273.  
  274. To insert a file into the file you are editing:
  275. 1. Press Ctl K R where you want the file inserted. A window will
  276.    prompt
  277.      filename:
  278. 2. Type a file name and press Enter. The file will be inserted after
  279.    the cursor.
  280.  
  281. The file is treated as not column mode, and the setting of the
  282. destination window are ignored.
  283.  
  284. TIP   If you want to read in a file as a column, open a separate
  285.       window for the file, and read it there. Then set the column
  286.       settings you want, mark the block of text in the file, and Copy
  287.       or Move it to the Destination window.
  288.  
  289. .cp5
  290. .tc    Shift Left .........................................#
  291. Shift Left
  292.  
  293. A marked block can be shifted left or right on the line(s). Column
  294. mode blocks can also be shifted.
  295.  
  296. To shift a marked block left press Ctrl K < or Ctrl F7. You will be
  297. prompted for the number of columns to move the block.
  298.  
  299. Blocks that are not column mode blocks can be shifted left beyond the
  300. left margin. Any characters shifted beyond the left margin will be
  301. lost.
  302.  
  303. Column mode blocks always behave as if Comumn Replace is ON. That is
  304. that text overwrites any text to the left, and columns left blank are
  305. blanked. It is not possible to shift a column mode block beyond the
  306. left margin.
  307.  
  308. .cp5
  309. .tc    Shift Right ........................................#
  310. Shift Right
  311.  
  312. To shift a marked block right press Ctrl K > or Ctrl F8. You will be
  313. prompted for the number of columns to move the block.
  314.  
  315. As the block is shifted to the right, the columns vacated are filled
  316. with spaces. It is not possible to shift a block further right than the
  317. maximum line length, which is 999 characters.
  318.  
  319. Column mode blocks always behave as if Comumn Replace is ON. That is
  320. that text overwrites any text to the right, and columns left blank are
  321. blanked.
  322.  
  323. .tc    Strip Hi Bits ......................................#
  324. Strip Hi Bits
  325.  
  326. Some word processors such as WordstarTM can set the hi bits of certain
  327. characters on, resulting in the text looking like Greek or something.
  328. You can turn off hi bits when you load a file (refer to Load File
  329. Options) or you can mark a block and turn off the hi bits in the
  330. block.
  331.  
  332. To strip off hi bits in a marked block, press Ctrl K ^ (shift plus the
  333. 6 key)
  334.  
  335. For example:
  336.     áíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╘╒╓╫╪┘┌█µτΦΘ
  337.  
  338.   becomes
  339.      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRTUVWXYZ[fghi
  340.  
  341. .tc    Toggle Case ........................................#
  342. Toggle Case
  343.  
  344. Toggling the case of a marked block means turning capital letters into
  345. lower case letters and vice versa. If the block is marked and visible,
  346. and the cursor is positioned in the block, the command affects the
  347. entire block. Otherwise the command operates only on the character
  348. under the cursor.
  349.  
  350. To change the case of a block, press Alt F10.
  351.  
  352. .tc    To Upper Case ......................................#
  353. To Upper Case
  354.  
  355. This command turns characters into upper case. If the block is marked
  356. and visible, and the cursor is positioned in the block, the command
  357. affects the entire block. Otherwise the command operates only on the
  358. character under the cursor.
  359.  
  360. To convert to Upper case, press Ctlr K ".  (you need the shift key for ")
  361.  
  362. .tc    To Lower Case ......................................#
  363. To Lower Case
  364.  
  365. This command turns characters into Lower case. If the block is marked
  366. and visible, and the cursor is positioned in the block, the command
  367. affects the entire block. Otherwise the command operates only on the
  368. character under the cursor.
  369.  
  370. To convert to Upper case, press Ctlr K '. (no shift key for ')
  371.  
  372. .tc    Format Block .......................................#
  373. Format Block
  374.  
  375. This command applies the format paragraph command to the marked block.
  376. You will need word wrap to be active for this to work.
  377.  
  378. Press Ctrl K F.
  379.  
  380. In non column mode, each paragraph that is part of the marked block is
  381. reformatted.
  382.  
  383. In column mode, the start and end block markers define the line
  384. boundaries of the paragraph reformating. The columns are determined
  385. from the columns set in the ruler line, and depend on where the cursor
  386. is. Reformatting columns of text without reference to existing column
  387. margins does not make a lot of sense.
  388.